<template>
  <div id="app">
    <router-view v-slot="{ Component }">
      <transition name="fade">
        <component :is="Component" />
      </transition>
    </router-view>
  </div>
</template>

<script>
import { LANGUAGE_LIST } from "@/config/lang"
import ComHeader from "./components/header.vue"
import ComFooter from "./components/footer.vue"

export default {
  name: "App",
  components: {
    ComHeader,
    ComFooter,
  },
  created() {
    this.$store.commit("setLanguage", LANGUAGE_LIST[0].value)
  },
}
</script>

<style lang="less">
html,
body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
}

html {
  scroll-behavior: smooth;
  font-family: "Outfit", Avenir, Helvetica, Arial, sans-serif;
}

body {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: @black;
  font-size: @fsLevel6;
}
</style>
